package com.sj.demo;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.Button;
import android.widget.Toast;

public class HelloWorldOfAndroidActivity extends Activity {
	/** Called when the activity is first created. */
	
	String tag = "[System.out]";
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		Log.i(tag, "i'm create");
	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
		Toast.makeText(this, "i'm destory", Toast.LENGTH_SHORT);
		Log.i(tag, "i'm destroy");
	}

	@Override
	protected void onPause() {
		super.onPause();
		Toast.makeText(this, "i'm pause", Toast.LENGTH_SHORT);
		Log.i(tag, "i'm pause");
	}

	@Override
	protected void onRestart() {
		super.onRestart();
		Toast.makeText(this, "i'm restart", Toast.LENGTH_SHORT);
		Log.i(tag, "i'm restart");
	}

	@Override
	protected void onResume() {
		super.onResume();
		Toast.makeText(this, "i'm resume", Toast.LENGTH_SHORT);
		Log.i(tag, "i'm resume");
	}

	@Override
	protected void onStart() {
		super.onStart();
		Toast.makeText(this, "i'm start", Toast.LENGTH_SHORT);
		Log.i(tag, "i'm start");
	}

	@Override
	protected void onStop() {
		super.onStop();
		Toast.makeText(this, "i'm stop", Toast.LENGTH_SHORT);
		Log.i(tag, "i'm stop");
	}

}